<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>修改员工信息</h1>
<form method="post" action="http://localhost:8080/Emp?action=update">
    <table border="1">

        <tr>
            <td>姓名:</td>
            <td>
                <input type="hidden" name="EMPNO" value="${emp.EMPNO}">
                <input type="text" name="ENAME" value="${emp.ENAME}">
            </td>
        </tr>

        <tr>
            <td>职位:</td>
            <td>
                <input type="text" name="JOB" value="${emp.JOB}">
            </td>
        </tr>

        <tr>
            <td>领导:</td>
            <td>
                <input type="text" name="MGR" value="${emp.MGR}">
            </td>
        </tr>
        <tr>
            <td> 入职时间:</td>
            <td>
                <input type="date" name="HIREDATE" value="2022-09-05">
            </td>
        </tr>
        <tr>
            <td>工资:</td>
            <td>
                <input type="text" name="SAL" value="${emp.SAL}">
            </td>
        </tr>


        <tr>
            <td>奖金:</td>
            <td>
                <input type="text" name="COMM" value="${emp.COMM}">
            </td>
        </tr>

        <tr>
            <td>部门编号:</td>
            <td>
                <input type="text" name="deptno" value="${emp.deptno}">
            </td>
        </tr>

        <tr>
            <td colspan="2">
                <input type="submit" value="更新">
                <input type="reset" value="重置">
            </td>
        </tr>
    </table>
</form>

</body>
</html>
